package com.koron.order.patrol.mapper;

import com.koron.order.patrol.bean.po.PatrolUserPo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 巡视工单-巡视人员从表(PatrolUser)表数据库访问层
 *
 * @author zhouj
 * @since 2021-10-26 15:28:17
 */
public interface PatrolUserMapper {

    int insertOrUpdate(PatrolUserPo patrolUser);

    int insertOrUpdateBatch(@Param("list") List<PatrolUserPo> patrolUserList);

    int insert(PatrolUserPo patrolUser);

    int insertBatch(@Param("list") List<PatrolUserPo> patrolUserList);

    int update(PatrolUserPo patrolUser);

    int deleteById(String id);

    PatrolUserPo queryById(String id);

    List<PatrolUserPo> queryList(PatrolUserPo patrolUser);

    int deleteByPatrolIds(@Param("list") List<String> patrolIds);

    List<PatrolUserPo> queryByPatrolIds(@Param("patrolIds") List<String> patrolIds);
    
}